package com.example.k.littletag.db;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

/**
 * Created by K on 2015/8/16.
 */
public class NoteOpenHelper extends SQLiteOpenHelper {


    public NoteOpenHelper(Context context, String name, SQLiteDatabase.CursorFactory factory, int version) {
        super(context, name, factory, version);
    }

    public static final String CREATE_NOTE = "create table Notes ( "
            + "id integer primary key autoincrement,"
            + "isFinish integer,"
            + "checkCount integer,"
            + "time_year integer,"
            + "time_month integer,"
            + "time_day integer,"
            + "time_hour integer,"
            + "time_minute integer,"
            + "content text)";


    @Override
    public void onCreate(SQLiteDatabase db) {
        db.execSQL(CREATE_NOTE);
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }
}
